package com.yangtao.prototype.system.role.service;

import java.util.List;

import com.yangtao.framework.web.BaseModel;
import com.yangtao.prototype.system.entity.Role;
import com.yangtao.prototype.util.CheckBoxTree;

public class RoleModel extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Role domain;
	private List<CheckBoxTree> menu;
	private String roleAuth;

	public String getRoleAuth() {
		return roleAuth;
	}

	public void setRoleAuth(String roleAuth) {
		this.roleAuth = roleAuth;
	}

	public List<CheckBoxTree> getMenu() {
		return menu;
	}

	public void setMenu(List<CheckBoxTree> menu) {
		this.menu = menu;
	}

	public void setDomain(Role domain) {
		this.domain = domain;
	}

	@Override
	public Role getDomain() {
		if (domain == null)
			domain = new Role();
		return domain;
	}

}
